<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/css/common.css" />
<link rel="stylesheet" type="text/css" href="/css/tab.css" />
<link rel="stylesheet" type="text/css" href="/css/jquery/ste/jquery.ui.all.css" />
<script type="text/javascript" src="/javascript/jquery/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="/javascript/jquery/jquery.ui.core.min.js"></script>
<script type="text/javascript" src="/javascript/jquery/jquery.ui.widget.min.js"></script>
<script type="text/javascript" src="/javascript/jquery/jquery.ui.mouse.min.js"></script>
<script type="text/javascript" src="/javascript/jquery/jquery.ui.draggable.min.js"></script>
<script type="text/javascript" src="/javascript/jquery/jquery.ui.resizable.min.js"></script>
<script type="text/javascript" src="/javascript/jquery/jquery.ui.position.min.js"></script>
<script type="text/javascript" src="/javascript/jquery/jquery.ui.datepicker.min.js"></script>
<script type="text/javascript" src="/javascript/jquery/jquery.ui.button.min.js"></script>
<script type="text/javascript" src="/javascript/jquery/jquery.ui.dialog.min.js"></script>
<script type="text/javascript" src="/javascript/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/javascript/ckeditor/adapters/jquery.js"></script>
<script type="text/javascript" src="/javascript/news/list.js"></script>
<title>{$uiVar.html.title}</title>
</head>
<body>
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
  <tr>
    <td style="padding: 5px 5px 10px 5px;"><img src="/images/logo.gif" alt="Logo" /></td>
    <td style="padding: 5px;" align="right">
    	<a href="/member/profile">{$smarty.session.STE_ADMIN.member.FULLNAME}</a> | <a href="/member/logout">Logout</a>
    </td>
  </tr>
  <tr>
    <td colspan="2" style="padding: 10px 5px 0px 5px;">
    	{include file="menu/news.tpl"}
      <div id="tab_main">
        <div id="tab_content">
        	<div style="padding: 0 0 5px 0;">
          	Phân loại:
            <select id="listNewsCategoryID" style="min-width: 100px;">
            	<option value="1">Thế giới</option>
              <option value="2">Trung Quốc</option>
              <option value="3">Việt Nam</option>
              <option value="4">Sacom-STE</option>
              <option value="5">Tiền tệ - vàng</option>
              <option value="6">Chứng khoán</option>
              <option value="7">Hàng hóa - nguyên liệu</option>
              <option value="8">Thị trường khác</option>
            </select>
            <select id="listNewsLanguageID" style="min-width: 100px;">
            	<option value="1">Tiếng Việt</option>
              <option value="3">中文</option>
            </select>
            <input id="newNewsButton" type="button" value="Thêm mới" />
          </div>
        	<div class="table_border">
            <table id="listNewsTable" cellpadding="0" cellspacing="0" width="100%">
              <tr>
                <th>ID</th>
                <th>Tiêu đề</th>
                <th>Ngày công bố</th>
                <th>Nguồn</th>
                <th>Chức năng</th>
              </tr>
            </table>
          </div>
        </div>
    	</div>
		</td>
  </tr>
  <tr>
  	<td colspan="2" style="padding: 0 5px;" class="footer">&copy; FSHOP giữ bản quyền {$smarty.now|date_format: "%Y"}</td>
  </tr>
</table>
<div id="newNewsDialog" title="Thêm tin tức">
	<form id="newNewsForm" method="post">
	<table cellpadding="0" cellspacing="0" width="100%">
		<tr id="newNewsErrorRow" style="display: none;">
      <td>&nbsp;</td>
      <td id="newNewsErrorMessage" class="error"></td>
    </tr>
    <tr>
			<td>Website <span class="required">*</span></td>
			<td>
				<label><input type="checkbox" id="newNewsSteelWebsite" name="newNewsWebsite[]" value="steel" checked="checked" /> Thép</label>
				<label><input type="checkbox" id="newNewsCashewWebsite" name="newNewsWebsite[]" value="cashew" /> Điều</label>
				<label><input type="checkbox" id="newNewsRubberWebsite" name="newNewsWebsite[]" value="rubber" /> Cao su</label>
			</td>
		</tr>
		<tr>
			<td>Ngôn ngữ <span class="required">*</span></td>
			<td>
				<label><input type="radio" id="newNewsLanguageVietnamese" name="newNewsLanguageID" value="1" checked="checked"> Tiếng Việt</label>
				<label><input type="radio" id="newNewsLanguageChinese" name="newNewsLanguageID" value="3"> 中文</label>
			</td>
		</tr>
		<tr>
			<td>Tiêu đề <span class="required">*</span></td>
			<td>
				<input type="text" name="newNewsTitle" style="width: 700px;" />
			</td>
		</tr>
		<tr>
			<td>Phân loại <span class="required">*</span></td>
			<td>
				<select id="newNewsCategoryID" name="newNewsCategoryID" style="min-width: 100px;">
					<option value="1">Thế giới</option>
          <option value="2">Trung Quốc</option>
          <option value="3">Việt Nam</option>
          <option value="4">Sacom-STE</option>
          <option value="5">Tiền tệ - vàng</option>
          <option value="6">Chứng khoán</option>
          <option value="7">Hàng hóa - nguyên liệu</option>
          <option value="8">Thị trường khác</option>
        </select>
        <label><input type="checkbox" id="newNewsIsHighlight" name="newNewsIsHighlight" value="1"> Tin tiêu điểm</label>
        <label><input type="checkbox" id="newNewsIsHot" name="newNewsIsHot" value="1"> Tin nóng</label>
        <span style="padding: 0 0 0 15px;">Ngày công bố</span>
        <input type="text" id="newNewsPublishDate" name="newNewsPublishDate" style="width: 80px;" />
			</td>
		</tr>
		<tr>
			<td>Nguồn</td>
			<td><input type="text" name="newNewsSource" style="width: 200px;" /></td>
		</tr>
		<tr>
			<td>Ảnh đại diện</td>
			<td>
				<input type="text" id="newNewsImageURL" name="newNewsImageURL" style="width: 400px;" />
				<input type="button" id="newNewsImageSelect" name="newNewsImageSelect" value="Chọn ảnh" />
			</td>
		</tr>
		<tr>
			<td>Tóm tắt</td>
			<td>
				<input type="text" name="newNewsSummary" style="width: 700px;" />
			</td>
		</tr>
		<tr>
			<td>Nội dung</td>
			<td>
				<textarea id="newNewsContent" name="newNewsContent"></textarea>
			</td>
		</tr>
	</table>
	</form>
</div>
<div id="editNewsDialog" title="Cập nhật tin tức">
	<form id="editNewsForm" method="post">
	<table cellpadding="0" cellspacing="0" width="100%">
		<tr id="editNewsErrorRow" style="display: none;">
      <td>&nbsp;</td>
      <td id="editNewsErrorMessage" class="error"></td>
    </tr>
    <tr>
			<td>Website <span class="required">*</span></td>
			<td>
				<label><input type="checkbox" id="editNewsSteelWebsite" name="editNewsWebsite[]" value="steel" checked="checked" /> Thép</label>
				<label><input type="checkbox" id="editNewsCashewWebsite" name="editNewsWebsite[]" value="cashew" /> Điều</label>
				<label><input type="checkbox" id="editNewsRubberWebsite" name="editNewsWebsite[]" value="rubber" /> Cao su</label>
			</td>
		</tr>
		<tr>
			<td>Ngôn ngữ <span class="required">*</span></td>
			<td>
				<label><input type="radio" id="editNewsLanguageVietnamese" name="editNewsLanguageID" value="1" checked="checked"> Tiếng Việt</label>
				<label><input type="radio" id="editNewsLanguageChinese" name="editNewsLanguageID" value="3"> 中文</label>
			</td>
		</tr>
		<tr>
			<td>Tiêu đề <span class="required">*</span></td>
			<td>
				<input type="text" id="editNewsTitle" name="editNewsTitle" style="width: 700px;" />
			</td>
		</tr>
		<tr>
			<td>Phân loại <span class="required">*</span></td>
			<td>
				<select id="editNewsCategoryID" name="editNewsCategoryID" style="min-width: 100px;">
					<option value="1">Thế giới</option>
          <option value="2">Trung Quốc</option>
          <option value="3">Việt Nam</option>
          <option value="4">Sacom-STE</option>
          <option value="5">Tiền tệ - vàng</option>
          <option value="6">Chứng khoán</option>
          <option value="7">Hàng hóa - nguyên liệu</option>
          <option value="8">Thị trường khác</option>
        </select>
        <label><input type="checkbox" id="editNewsIsHighlight" name="editNewsIsHighlight" value="1"> Tin tiêu điểm</label>
        <label><input type="checkbox" id="editNewsIsHot" name="editNewsIsHot" value="1"> Tin nóng</label>
        <span style="padding: 0 0 0 15px;">Ngày công bố</span>
        <input type="text" id="editNewsPublishDate" name="editNewsPublishDate" style="width: 80px;" />
			</td>
		</tr>
		<tr>
			<td>Nguồn</td>
			<td><input type="text" id="editNewsSource" name="editNewsSource" style="width: 200px;" /></td>
		</tr>
		<tr>
			<td>Ảnh đại diện</td>
			<td>
				<input type="text" id="editNewsImageURL" name="editNewsImageURL" style="width: 400px;" />
				<input type="button" id="editNewsImageSelect" name="editNewsImageSelect" value="Chọn ảnh" />
			</td>
		</tr>
		<tr>
			<td>Tóm tắt</td>
			<td>
				<input type="text" id="editNewsSummary" name="editNewsSummary" style="width: 700px;" />
			</td>
		</tr>
		<tr>
			<td>Nội dung</td>
			<td>
				<textarea id="editNewsContent" name="editNewsContent"></textarea>
				<input type="hidden" id="editNewsID" name="editNewsID" />
			</td>
		</tr>
	</table>
	</form>
</div>
</body>
</html>